<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h4>测试题</h4>
        <my-subject></my-subject>
        <my-subject></my-subject>
        <my-subject></my-subject>

        <div>
            <span>1.正确</span>
            <span>2.正确</span>
            <span>3.正确</span>
        </div>
    </div>

    <script src="./vue.js"></script>
    <script>
        const vm = new Vue( {
            el: '#app',
            components:{
                MySubject: {
                    template: `
                        <div style="border:1px solid #ccc; width:300px; margin:5px;padding:5px;">
                            <span>8</span> + <span>4</span> = <input  style="width:50px;">
                            <button>提交</button>
                        </div>
                    `
                }
            }

        })
    </script>
</body>
</html>